package com.hy.service;


import com.hy.service.impl.Ums_membeServiceimpl;
import com.hy.utils.HY_Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "hy-gateway",contextId = "ums-member",fallback = Ums_membeServiceimpl.class)
public interface IUms_memberService {

    /**
     * 手机验证码注册
     * @param phone
     * @param province
     * @param city
     * @param password
     * @return
     */
    @PostMapping("hy-frontuser-provider/ums_member/phoneCodeReg.action")
    HY_Result phoneCodeReg(@RequestParam String phone,@RequestParam String code, @RequestParam String province, @RequestParam String city,@RequestParam String password);

    /**
     * 第三方注册
     * @param qlmap
     * @return
     */
    @PostMapping("hy-frontuser-provider/ums_member/third_reg.action")
    HY_Result third_Reg(@RequestBody Map<String,Object> qlmap);

    /**
     * 用户名验证会员是否注册
     * @param username
     * @return
     */
    @RequestMapping("hy-frontuser-provider/ums_member/userNameVerify.action")
    HY_Result userNameVerify(@RequestParam String username);

    /**
     * 手机号验证会员是否注册
     * @param phone
     * @return
     */
    @RequestMapping("hy-frontuser-provider/ums_member/phoneVerify.action")
    HY_Result phoneVerify(@RequestParam String phone);

    /**
     * 手机号-密码-登录
     * @param phone
     * @param password
     * @return
     */
    @PostMapping("hy-frontuser-provider/ums_member/phonePwdLogin.action")
    HY_Result phonePwdLogin(@RequestParam String phone,@RequestParam String password);

}